package com.ztf666.articlereview.mapper;

import com.ztf666.articlereview.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author z
* @description 针对表【article】的数据库操作Mapper
* @createDate 2022-02-21 15:29:39
* @Entity com.ztf666.articlereview.entity.Article
*/
@Mapper
public interface ArticleMapper {

    int addArticle(@Param("name") String name, @Param("desc") String desc);

    List<Article> selectArticleByAid(@Param("id") int aid);
}




